﻿using KinonekoSoftware.Studio.Components;

namespace KinonekoSoftware.Studio.Resources.Converters
{
    public class ObjectNameSelectorConverter : ConverterBase
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (Selector is null)
            {
                return value;
            }

            return Selector(value);
        }
        
        
        public ObjectNameSelector Selector { get; set; }
    }
}